package com.enba.rbacadmin.module.auth.controller.resp;

import com.enba.rbacadmin.module.auth.entity.Role;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
public class GetUserRoleIdSetResp extends Role {

  // true:选中 false:未选中
  @JsonIgnore private boolean layChecked;

  public void setLayChecked(boolean layChecked) {
    this.layChecked = layChecked;
  }

  @JsonGetter("LAY_CHECKED")
  public boolean getLAY_CHECKED() {
    return layChecked;
  }
}
